package exception;

public class Circle implements Shape {

	private int redius;
	public static final double PI = 3.14;
	
	public Circle(int redius) {
		if(redius <= 0){
			throw new NoValueException("半径非法值");
		}
		this.redius = redius;
	}


	@Override
	public void getArea() {
		System.out.println(redius * redius * PI);

	}

}
